#pragma once

#include "LayerBase.h"
#include <deque>

class CLayerCUnEvent : public CLayerBase {
	typedef std::deque<PropertyInfo>	DequeBProperty_t;
public:
	CLayerCUnEvent(void);
	virtual ~CLayerCUnEvent(void);
	CREATE_FUNC(CLayerCUnEvent);

	bool init() override;
	virtual void onEnter() override;
	virtual void onExit() override;
	virtual void update(float delta) override;
	void BroadcastProperty(uint8_t count, PropertyInfo* prop);
private:
	//	void onOpenPack(cocos2d::Ref* pSender, cocos2d::ui::Widget::TouchEventType type);
	void onBroadcastProperty();
	void onBroadcastOneProperty(float d);

	void broadcastProperty(float d);
private:
	//	cocos2d::Node*				m_Pack;

	float							m_Interval;
	DequeBProperty_t				m_NeedBroadcastProperty;
	CCommonUiManager::RunProppertyBroadcastParam	m_PropertyParams;
};

